import type { RouteRecordRaw } from "vue-router";

// 用户信息包括权限数据
export interface UserInfoState {
  token: string;
	avatar: string;
	name: string;

  menuRoutes: RouteRecordRaw[] // 用于生成导航菜单的路由列表
}


//分类小仓库state函数返回对象的类型
import type { Attr } from "@/api/product/attr/types";
export interface CategoryState {
  c1_arr: Attr[],
  c1Id:number|string
  c2_arr: Attr[],
  c2Id:number|string
  c3_arr: Attr[],
  c3Id:number|string
}



export interface MockData {
  '//1': string;
  salesToday: string;
  salesLastDay: number;
  salesGrowthLastDay: number;
  salesGrowthLastMonth: number;
  '//2': string;
  orderToday: string;
  orderLastDay: number;
  orderTrend: number[];
  orderTrendAxis: string[];
  '//3': string;
  orderUser: string;
  returnRate: number;
  orderUserTrend: number[];
  orderUserTrendAxis: string[];
  '//4': string;
  usersTotal: string;
  usersLastDay: number;
  usersLastMonth: number;
  userGrowthLastDay: string;
  userGrowthLastMonth: string;
  '//5': string;
  orderFullYearAxis: string[];
  orderFullYear: number[];
  userFullYearAxis: string[];
  userFullYear: number[];
  '//6': string;
  orderRank: OrderRank[];
  userRank: OrderRank[];
  '//7': string;
  searchWord: SearchWord[];
  '//8': string;
  saleRank: SaleRank;
}

interface SaleRank {
  category: Category;
  goods: Category;
}

interface Category {
  axisX: string[];
  data1: number[];
}

interface SearchWord {
  word: string;
  count: number;
  user: number;
}

interface OrderRank {
  no: number;
  name: string;
  count: string;
}

